#include "widget.h"
#include "ui_widget.h"
#include"QPushButton"
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QPushButton* btn=new QPushButton(this);
    btn->setText("按键");
    btn->setWindowTitle("我是按键");
}

Widget::~Widget()
{
    delete ui;
}

